package com.lam.code.configuration.prop;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lam
 * @description jwt属性配置
 * @date 2019/12/20 23:37
 */
@Data
@Component
@ConfigurationProperties(prefix = "token")
public class JWTProperties {
    /**
     * token过期时间，单位分钟，默认120分钟
     */
    private Integer tokenExpireTime = 120;

    /**
     * 更新令牌时间，单位分钟，默认5分钟
     */
    private Integer refreshCheckTime = 5;

    /**
     * Shiro缓存有效期，单位分钟，默认120分钟
     */
    private Integer shiroCacheExpireTime = 120;

    /**
     * token加密密钥
     */
    private String encryptSalt = "bingeSB123456";

}
